package iontec.behavior;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.widget.SimpleCursorAdapter;
import android.widget.TabHost;

public class StartUp  extends TabActivity {
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
   

        
        TabHost tabHost = getTabHost();  // The activity TabHost
        TabHost.TabSpec spec;  // Resusable TabSpec for each tab
        Intent intent;  // Reusable Intent for each tab

        // Create an Intent to launch an Activity for the tab (to be reused)
        intent = new Intent().setClass(this, Kids.class);

        // Initialize a TabSpec for each tab and add it to the TabHost
        spec = tabHost.newTabSpec("Kids").setIndicator("Kids")
        			  .setContent(intent);
        tabHost.addTab(spec);

        // Do the same for the other tabs
        intent = new Intent().setClass(this, Behaviors.class);
        spec = tabHost.newTabSpec("Behaviors").setIndicator("Behaviors")
                      .setContent(intent);
        tabHost.addTab(spec);

       /* intent = new Intent().setClass(this, Behaviors.class);
        spec = tabHost.newTabSpec("songs").setIndicator("Settings")
                      .setContent(intent);
        tabHost.addTab(spec);
*/
        tabHost.setCurrentTab(0);

    }
    
  
}